package com.example.enums;

import com.example.handlers.SysHandler;
import com.example.handlers.SysMQHandler;

/*
 * @className: SysHandlerEnum
 * @author: chentao
 * @date: 2025/9/24 9:45
 * @Version: 1.0
 * @description:
 */
public enum SysHandlerEnum {

    MQSendHandler("MQ发送处理器", "1", SysMQHandler.class),
    SMSSendHandler("短信发送处理器", "2", SysMQHandler.class);

    private String name;

    private String code;

    private Class<? extends SysHandler> handlerClass;

    SysHandlerEnum(String name, String code, Class<? extends SysHandler> handlerClass) {
        this.name = name;
        this.code = code;
        this.handlerClass = handlerClass;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Class<? extends SysHandler> getHandlerClass() {
        return handlerClass;
    }

    public void setHandlerClass(Class<? extends SysHandler> handlerClass) {
        this.handlerClass = handlerClass;
    }
}
